<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
<title>${appname}-<c:if test="${!empty sessionScope._local_node_session}">${sessionScope._local_node_session.nodeName}-</c:if>${si:ctname("NET_TYPE",sessionScope._netType)}</title>
<%@ include file="/WEB-INF/view/common/css_js_base.jsp"%>
</head>
<body>
<%@ include file="/WEB-INF/view/common/navbar.jsp"%>
<div class="container">
	<div class="row">
		<div class="col-md-12">
			<nav class="navbar navbar-default" role="navigation">
				<div class="container-fluid">
					<div class="navbar-header">
						<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-6">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						</button>
						<a class="navbar-brand" href="#">&nbsp;</a>
					</div>
			
					<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-6">
						<ul class="nav navbar-nav">
						<li><a href="${ctx}/monitor/monitor_sq_list.do">发送队列</a></li>
						<li  class="active"><a href="${ctx}/monitor/monitor_lq_list.do">接收队列</a></li>
						</ul>
					</div>
				</div>
			</nav>
			<div class="panel panel-default">
				  <div class="panel-heading">
				       接收队列监控
				  </div>
				  <div class="panel-body">
					<div class="row">
				  		<div class="col-md-8">
						  	<form class="form-inline" role="form">
							  <div class="form-group">
							    <label class="control-label">队列名称</label>
							    <input type="text" class="form-control input-sm"/>
							  </div>
							  <a href="#" class="btn btn-primary btn-sm btn-search">查找</a>
							</form>
						</div>
						<div class="col-md-4 text-right">
						</div>
					</div>
				  	<hr/>
					<table class="table table-striped table-hover">
						<thead>
				        <tr>
							<th>队列名称</th>
							<th>队列状态</th>
							<th>配置消息数</th>
							<th>已用消息数</th>
							<th>剩余消息数</th>
							<th>所占空间 (单位K)</th>
							<th>剩余空间 (单位K)</th>
							<th>等待消费者数</th>
				        </tr>
					    </thead>
						<tbody>
						<c:forEach var="vo" items="${_data}">
						  <tr>
							<td>${vo.name}</td>
							<td>${vo.status}</td>
							<td>${vo.configMsgNum}</td>
							<td>${vo.usedMsgNum}</td>
							<td>${vo.remainMsgNum}</td>
							<td>${vo.mallocSpace}</td>
							<td>${vo.remainSpace}</td>
							<td>${vo.gettor}</td>
						  </tr>
						</c:forEach>
						</tbody>
					</table>
				  </div>
			</div>
		</div>
	</div>
</div>
<%@ include file="/WEB-INF/view/common/footer.jsp"%>
</body>
</html>
